<%-- 
    Document   : ViewCustProfileDetails
    Created on : Apr 1, 2014, 6:55:05 PM
    Author     : Dalia.Aly
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@include file="header.jsp" %> 
<div id="main_content">
    <%@include file="adminmenubar.jsp" %>
    <!-- end of menu tab -->
    <div class="crumb_navigation"> Navigation: <a href="http://all-free-download.com/free-website-templates/">Home</a> &lt; <span class="current">Category name</span> </div>
    <%@include file="adminLeftContent.jsp" %>
    <!-- end of left content -->
    <div class="center_content">
        <div class="center_title_bar">View Profiles </div>
        <div class="prod_box_big">
            <div class="top_prod_box_big"></div>
            <div class="center_prod_box_big">
                <div class="contact_form">
                    <c:forEach var="profile" items="${profileDetails}">
                        <div class="right_content" style="position: relative;left:200px">
                            <img src="<c:out value="${profile.c_img}" />" width="150" height="150" style="text-align: center" alt="Profile Picture" name="c_img"/> 
                            <a href="ProfilePhoto.jsp" style="float: right">Change Photo</a>
                        </div> 
                        <table class="table table-hover">
                            <tbody>
                                <tr>
                                    <td><h3 style="color: #2a6496">First Name</h3></td>
                                    <td><h4 style="color: #357ebd">${profile.firstName}</h4></td>
                                </tr>
                                <tr>
                                    <td><h3 style="color: #2a6496">Last Name</h3></td>
                                    <td><h4 style="color: #357ebd">${profile.lastName}</h4></td>
                                </tr>
                                <tr>
                                    <td><h3 style="color: #2a6496">Email</h3></td>
                                    <td><h4 style="color: #357ebd">${profile.userMail}</h4></td>
                                </tr>
                                <tr>
                                    <td><h3 style="color: #2a6496">Birth Date</h3></td>
                                    <td><h4 style="color: #357ebd">${profile.userBDate}</h4></td>
                                </tr>
                                <tr>
                                    <td><h3 style="color: #2a6496">Mobile</h3></td>
                                    <td><h4 style="color: #357ebd">${profile.userMobile}</h4></td>
                                </tr>
                                <tr>
                                    <td><h3 style="color: #2a6496">Address</h3></td>
                                    <td><h4 style="color: #357ebd">${profile.userAddress}</h4></td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <div>
                                            <form action="AdminViewProfilesServlet" method="post">
                                                <input type="submit" class="btn btn-primary btn-sm" value="Back" /> 
                                            </form>          
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </c:forEach>
            <div id="profileData">

            </div>
        </div>
    </div>
    <!-- end of center content -->
    <%@include file="admincpanel.jsp" %>

    <!-- end of right content -->
</div>
<!-- end of main content -->
<%@include file="footer.jsp" %>